import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数字：");
        int num = scanner.nextInt();
        if(num%3==0 && num%5==0 && num%7==0){
            System.out.println("该数能被3，5，7同时整除");
        }else{
            System.out.println("该数不能被3，5，7同时整除");
        }
    }
}
